package com.yx.changdao.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.yx.changdao.common.entity.Worker;
import com.yx.changdao.common.mapper.WorkerMapper;
import com.yx.changdao.service.WorkerService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: <br/>
 * 工作人员表
 * <p>
 * <br/>
 * @Auther: wangzd
 * @create 2020/04/03 10:20
 */
@Service
public class WorkerServiceImpl extends ServiceImpl<WorkerMapper, Worker> implements WorkerService {

    @Override
    public Worker getByUserId(String userId) {
       return getOne(new QueryWrapper<Worker>().eq(Worker.SYS_USER_ID,userId));
    }
}
